package com.nowcoder.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.Date;

@Data
public class LoginTicket {

    /**
     * 自增主键,插入数据后将自增主键设置到对象中
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;

    /**
     * 登录凭证
     */
    private String ticket;

    /**
     * 0-有效; 1-无效;
     */
    private Integer status;
    private Date expired;

}
